package artid.com.arttogoa.parser;

import java.io.Serializable;

import org.json.JSONObject;

public class DynamicList extends AppItem implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String art_id;
	String imgurl;
	String title;
	String commend_num;
	String comment_num;
	String create_time;
	String is_auth;
	String type;
	String pageurl;

	@Override
	public void parse(JSONObject obj) {
		if (null == obj) {
			return;
		}
		art_id = obj.optString("art_id");
		imgurl = obj.optString("imgurl");
		title = obj.optString("title");
		commend_num = obj.optString("commend_num");
		comment_num = obj.optString("comment_num");
		create_time = obj.optString("create_time");
		is_auth = obj.optString("is_auth");
		type = obj.optString("type");
		pageurl = obj.optString("pageurl");
	}

	public String getArt_id() {
		return art_id;
	}

	public void setArt_id(String art_id) {
		this.art_id = art_id;
	}

	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCommend_num() {
		return commend_num;
	}

	public void setCommend_num(String commend_num) {
		this.commend_num = commend_num;
	}

	public String getComment_num() {
		return comment_num;
	}

	public void setComment_num(String comment_num) {
		this.comment_num = comment_num;
	}

	public String getCreate_time() {
		return create_time;
	}

	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}

	public String getIs_auth() {
		return is_auth;
	}

	public void setIs_auth(String is_auth) {
		this.is_auth = is_auth;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getPageurl() {
		return pageurl;
	}

	public void setPageurl(String pageurl) {
		this.pageurl = pageurl;
	}

	@Override
	public String toString() {
		return "DynamicList [art_id=" + art_id + ", imgurl=" + imgurl
				+ ", title=" + title + ", commend_num=" + commend_num
				+ ", comment_num=" + comment_num + ", create_time="
				+ create_time + ", is_auth=" + is_auth + ", type=" + type
				+ ", pageurl=" + pageurl + "]";
	}

}
